﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master"
    AutoEventWireup="true" CodeBehind="PrjBugList.aspx.cs" Inherits="Jzy.Web.Project.BugManage.PrjBugList" %>
<%@ Register Src="../../Common/Controls/Pager.ascx" TagName="Pager" TagPrefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
 <style type="text/css">
        div.style1
        {
            text-align:right;color:#666666; width:60px;
        }
        
        div.style3
        {
        	padding:2px 0px 2px 0px; line-height:20px;color:#666666;
        }
       
        .style2
        {
            width: 50px; text-align:center;
        }
        
        .style4
        {
        	text-align:center;
        }
      
        .bold
        {
        	font-weight:bold;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="head">
        <div class="left">
            <asp:Label ID="Label1" runat="server" Text="查看：" Font-Bold="true"></asp:Label>
            <asp:Repeater ID="rptStatus" runat="server" OnItemCommand="rptStatus_ItemCommand">
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server" Style="color: #999999" CommandArgument='<%#Eval("ID") %>'><%#Eval("Name") %></asp:LinkButton>
                </ItemTemplate>
                <SeparatorTemplate>
                    -
                </SeparatorTemplate>
            </asp:Repeater>
        </div>
    </div>
    <asp:Panel ID="pnlStatus" runat="server" Width="100%" CssClass="message" Visible="false">
        <asp:Label ID="Label6" runat="server" Text="当前查看的状态是："></asp:Label>
        <asp:Label ID="lblStatus" runat="server" Text="Label"></asp:Label></asp:Panel>
    <div id="list">
        <asp:HiddenField ID="hidSelectIDs" runat="server" Value="" />
        <table id="lvList" cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr id="lvHeader" runat="server">
                <th class="sp">
                    &nbsp;
                </th>
            
                <th class="style2" style="text-align: center;">
                    优先级
                </th>
               
                <th>
                    缺陷位置
                </th>
                <th style="text-align: center;">
                    缺陷描述
                </th>
                <th style="text-align: center;">
                    接收者
                </th>
                <th>
                    缺陷类型
                </th>
                <th style="text-align: center;">
                    当前状态
                </th>
                <th>
                    期望完成日期
                </th>
                <th>
                    实际完成日期
                </th>
               
            </tr>
            <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items" 
                onitemdatabound="lv_ItemDataBound">
                <LayoutTemplate>
                    <tr id="items" runat="server">
                    </tr>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr id="row" runat="server">
                        <td class="sp">
                            &nbsp;
                        </td>
                        
                        <td class="style2" nowrap="nowrap">
                            <div class="style2">
                                <%#(Jzy.Model.Project.BugPriority)(int)Eval("Severity")%>&nbsp;</div>
                        </td>
                       
                        <td nowrap="nowrap">
                            <asp:HyperLink ID="lnkName" runat="server"><%#Eval("Name") %></asp:HyperLink>&nbsp;
                        </td>
                        <td class="style4">
                            <asp:HyperLink ID="lnkDetail" runat="server" ToolTip='<%#Eval("Remark") %>'>查看</asp:HyperLink>
                        </td>
                        <td class="style4" nowrap="nowrap">
                            <%#Eval("ReceiveName")%>&nbsp;
                        </td>
                        <td>
                            <%#Eval("TypeName") %>&nbsp;
                        </td>
                        <td class="style4">
                            <asp:Label ID="lblStatus" runat="server" Text='<%#((Jzy.Model.Project.BugStatus)Eval("Status")).ToString() %>'></asp:Label>
                        </td>
                        <td>
                            <%#Eval("PlanEndTime", "{0:yyyy-MM-dd}")%>&nbsp;
                        </td>
                        <td nowrap="nowrap">
                            <%#Eval("RealEndTime", "{0:yyyy-MM-dd}")%>&nbsp;
                        </td>
                        
                    </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    <tr>
                        <td colspan="9" class="empty">
                            没有提过问题
                        </td>
                    </tr>
                </EmptyDataTemplate>
            </asp:ListView>
        </table>
    </div>
    <uc2:pager id="Pager1" runat="server" />
</asp:Content>
